package com.guanjia.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guanjia.entity.vo.Image;
import com.guanjia.entity.vo.ImageCorr;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public interface ImageMapper extends BaseMapper<Image> {

    @Insert("insert into car_img(credit_id,image_id) values(#{creid},#{imgid})")
    public void insertCarimg(ImageCorr imageCorr);

    @Insert("insert into idCard_img(credit_id,image_id) values(#{creid},#{imgid})")
    public void insertidCardimg(ImageCorr imageCorr);

    @Insert("insert into home_img(credit_id,image_id) values(#{creid},#{imgid})")
    public void inserthouseimg(ImageCorr imageCorr);

    @Insert("insert into other_img(credit_id,image_id) values(#{creid},#{imgid})")
    public void insertotherimg(ImageCorr imageCorr);

    @Insert("insert into contart(credit_id,image_id) values(#{creid},#{imgid})")
    public void insertcontarts(ImageCorr imageCorr);
}
